get the string after a character in php

75

$data = "123_String";    
$whatIWant = substr($data, strpos($data, "_") + 1);    
echo $whatIWant;

Comments

Submit
0 Comments